package com.example.saas.config.properties;

import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 租户配置
 */
@Getter
@Component
@ConfigurationProperties(prefix = "tenant")
public class TenantProperties {

    /**
     * 租户Id字段
     */
    private final String column = "tenant_id";

    /**
     * 需要忽略租户的数据库表
     */
    private final List<String> ignoreTables = new ArrayList<>();
}
